actor BFGGuy : RGAMonster
{
  obituary "%o was vapourized by a zombie's BFG9000."
  health 100
  radius 20
  height 56
  mass 100
  speed 8
  painchance 170
  seesound "chainguy/sight"
  painsound "chainguy/pain"
  deathsound "chainguy/death"
  activesound "chainguy/active"
  missiletype BFGBall
  DropItem "HandgunAmmo" 128
  MONSTER
  +FLOORCLIP
  states
  {
  Spawn:
	BFGX A 0
	BFGZ A 0 Thing_SetSpecial(0,226,613,0,random(20,40))
	POSS A 0 A_GiveInventory("XPAmount", random(20, 40))
	POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
    BFGZ AB 10 A_Look	
    goto Spawn+4
  See:
    BFGZ AABBCCDD 3 A_Chase
    loop
  Missile:
    BFGZ E 0 A_FaceTarget
    BFGZ E 20 A_PlaySound ("weapons/bfgf")
    BFGZ F 10 Bright
    BFGZ F 10 Bright A_MissileAttack
    BFGZ E 20
    goto See
  Pain:
    BFGZ G 3
    BFGZ G 3 A_Pain
    goto See
  Death:
    BFGZ H 5
    BFGZ I 5 A_Scream
    BFGZ J 5 A_NoBlocking
    BFGZ J 0 ACS_ExecuteAlways(648,0,0,0,0)
    BFGZ KLM 5
    BFGZ N -1
    stop
  XDeath:
    BFGZ O 5
    BFGZ P 5 A_XScream
    BFGZ Q 5 A_NoBlocking
    BFGZ Q 0 ACS_ExecuteAlways(648,0,0,0,0)
    BFGZ RS 5
    BFGZ T -1
    stop
  Raise:
    BFGZ NMLKJIH 5
    goto See
  }
}
